package com.logistics.modules.transportationManagement.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.logistics.modules.sys.entity.SystemcodetableEntity;
import com.logistics.modules.vehicleManagement.entity.VehicleEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * 
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-06 18:12:10
 */
@Data
@NoArgsConstructor
@TableName("vehiclemoveorder")
@JsonIgnoreProperties(value = {"handler"})
public class VehiclemoveorderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id 自增
	 */
	@TableId
	private Integer id;
	/**
	 * 车辆id
	 */
	private Integer vehicleId;
	/**
	 * 起始地
	 */
	private String startAddress;
	/**
	 * 目的地
	 */
	private String endAddress;
	/**
	 * 出发时间
	 */
	private Date startTime;
	/**
	 * 到达时间
	 */
	private Date reachTime;
	/**
	 * 运输订单总金额
	 */
	private Double totalMoney;
	/**
	 * 运输状态 0: 已装车 1: 运输中 2: 已到达
	 */
	private Integer status;

	/**
	 * 总里程
	 */
	private Double totalMileage;

	/**
	 * 删除状态（0，正常，1已删除）
	 */
	private Integer delFlag;

	/**
	 * 车辆
	 */
	@TableField(exist = false)
	private VehicleEntity vehicle;

	/**
	 * 车辆
	 */
	@TableField(exist = false)
	private SystemcodetableEntity vehicleStatus;

	/**
	 * 车辆移动订单详细信息列表
	 */
	@TableField(exist = false)
	private List<VehiclemoveorderdetailsEntity> vehicleMoveOrderDetailsList;



	public VehiclemoveorderEntity(Integer vehicleId, String startAddress, String endAddress, Date startTime, Double totalMoney, Integer status) {
		this.vehicleId = vehicleId;
		this.startAddress = startAddress;
		this.endAddress = endAddress;
		this.startTime = startTime;
		this.totalMoney = totalMoney;
		this.status = status;
	}
}
